.class public final Lnbisdk/sn;
.super Ljava/lang/Object;


# instance fields
.field private Al:Lnbisdk/qg;

.field private Am:Lnbisdk/jt;

.field private An:Lnbisdk/kv;


# direct methods
.method private constructor <init>(Lnbisdk/qg;Lnbisdk/jt;Lnbisdk/kv;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lnbisdk/sn;->Al:Lnbisdk/qg;

    iput-object p2, p0, Lnbisdk/sn;->Am:Lnbisdk/jt;

    iput-object p3, p0, Lnbisdk/sn;->An:Lnbisdk/kv;

    return-void
.end method

.method public static a(Lnbisdk/qg;Lnbisdk/jt;)V
    .locals 7

    new-instance v0, Lnbisdk/kv;

    invoke-virtual {p0}, Lnbisdk/qg;->kD()I

    move-result v1

    invoke-direct {v0, v1}, Lnbisdk/kv;-><init>(I)V

    new-instance v1, Lnbisdk/sn;

    invoke-direct {v1, p0, p1, v0}, Lnbisdk/sn;-><init>(Lnbisdk/qg;Lnbisdk/jt;Lnbisdk/kv;)V

    :cond_0
    iget-object v0, v1, Lnbisdk/sn;->An:Lnbisdk/kv;

    invoke-virtual {v0}, Lnbisdk/kv;->hI()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, v1, Lnbisdk/sn;->An:Lnbisdk/kv;

    invoke-virtual {v0}, Lnbisdk/kv;->next()I

    move-result v0

    const/4 v2, 0x0

    :goto_0
    iget-object v3, v1, Lnbisdk/sn;->Al:Lnbisdk/qg;

    invoke-virtual {v3}, Lnbisdk/qg;->kD()I

    move-result v3

    if-ge v2, v3, :cond_0

    iget-object v3, v1, Lnbisdk/sn;->Al:Lnbisdk/qg;

    invoke-virtual {v3, v2}, Lnbisdk/qg;->get(I)Ljava/lang/Object;

    move-result-object v3

    move v4, v2

    :goto_1
    if-lt v4, v0, :cond_1

    iget-object v5, v1, Lnbisdk/sn;->Al:Lnbisdk/qg;

    sub-int v6, v4, v0

    invoke-virtual {v5, v6}, Lnbisdk/qg;->get(I)Ljava/lang/Object;

    move-result-object v5

    iget-object v6, v1, Lnbisdk/sn;->Am:Lnbisdk/jt;

    invoke-interface {v6, v3, v5}, Lnbisdk/jt;->compare(Ljava/lang/Object;Ljava/lang/Object;)I

    move-result v6

    if-gtz v6, :cond_1

    iget-object v6, v1, Lnbisdk/sn;->Al:Lnbisdk/qg;

    invoke-virtual {v6, v4, v5}, Lnbisdk/qg;->set(ILjava/lang/Object;)V

    sub-int/2addr v4, v0

    goto :goto_1

    :cond_1
    iget-object v5, v1, Lnbisdk/sn;->Al:Lnbisdk/qg;

    invoke-virtual {v5, v4, v3}, Lnbisdk/qg;->set(ILjava/lang/Object;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_2
    return-void
.end method
